cmake_minimum_required(VERSION 3.22)
project(TEST)

set(FILES main.cpp func1.h func1.cpp func2.h func2.cpp)
add_executable(main ${FILES})
set_source_files_properties(func2.cpp PROPERTIES 
  HEADER_FILE_ONLY TRUE VS_SETTINGS "ExcludedFromBuild=true")
